package com.mark.web.data.service;

import com.github.pagehelper.PageInfo;
import com.mark.common.ServerResponse;
import com.mark.web.data.entity.po.Product;
import com.mark.web.data.entity.vo.ProductDetailVo;

/**
 * @Description: 商品模块Service层接口设计
 * @Author: Mark
 * @CreateDate: 2018/7/27.
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
public interface IProductService {
    ServerResponse<ProductDetailVo> portalGetProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer ownerId, Integer categoryId, int pageNum, int pageSize, String orderBy);

    ServerResponse insertOrUpdateProduct(Product product);

    ServerResponse setSaleStatus(Integer productId, Integer status);

    ServerResponse getProductDetail(Integer productId);

    ServerResponse getProductList(int pageNum, int pageSize, Integer ownerId);

    ServerResponse searchProduct(Integer ownerId, String productName, Integer productId, Integer status, int pageNum, int pageSize);

    ServerResponse getSellerProData(Integer ownerId);
}
